import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter);

const routes = [
  {
    component: () => import('views/Login'),
    path: '/'
  },
  {
    component: () => import('views/home/Home'),
    path: '/home',
    children: [
      {
        component: () => import('views/datasource/DataSource'),
        path: '/datasource'
      },
      {
        component: () => import('views/devcenter/DevCenter'),
        path: '/devcenter'
      },
      {
        component: () => import('views/repository/ResRepository'),
        path: '/repository'
      },
      {
        component: () => import('views/system/SystemSetting'),
        path: '/system'
      }

    ]
  }
];

const router = new VueRouter({
  routes
});

export default router
